<template>
  <div>
    <h1>playGround</h1>
    <!-- 子传父的点击事件处理逻辑 -->
    <!-- <gc-button @pointer="btnClick">登录</gc-button> -->
    <!-- native原生点击事件 -->
    <gc-button @click.native="btnClick">登录</gc-button>
  </div>
</template>

<script>
import gcButton from './components/gc-button.vue'
export default {
  components: { gcButton },
  methods: {
    // btnClick(e) {
    //   console.log(e) //e就是子组件传过来的值
    // }
    btnClick() {
      console.log(111)
    }
  }

}
</script>

<style>

</style>
